<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<center>

<h1><s:if test="employee==null || employee.employeeId == null">
	<s:text name="label.employee.add" />
</s:if> <s:else>
	<s:text name="label.employee.edit" />
</s:else></h1>
<s:fielderror /> <s:actionerror /> <s:actionmessage /> <s:form>
	<table align="center" class="borderAll">
		<tr>
			<td class="tdLabel"><s:text name="label.firstName" /></td>
			<td><s:textfield name="funcionario.nome" size="30" /></td>
		</tr>
		<tr>
			<td class="tdLabel"><s:text name="label.lastName" /></td>
			<td><s:textfield name="funcionario.sobrenome" size="30" /></td>
		</tr>
		<tr>
			<td class="tdLabel"><s:text name="label.age" /></td>
			<td><s:textfield name="funcionario.idade" size="20" /></td>
		</tr>
		<tr>
			<td class="tdLabel"><s:text name="label.department" /></td>
			<td><s:select name="funcionario.departamento.id" list="#session.departamentos" listKey="id" listValue="nome" /></td>
			<s:hidden name="funcionario.id" />
		</tr>
	</table>
	<br />
	<table>
		<tr>
			<td><s:submit action="insertOrUpdate" key="button.label.submit" cssClass="butStnd" /></td>
			<td><s:reset key="button.label.cancel" cssClass="butStnd" /></td>
		</tr>
	</table>
</s:form></center>
